﻿var p3ListDTClient;
var resizeId;
InitFieldDT();
function InitFieldDT() {
    var thisFeature = new Feature('4dd75512-4eb5-45c9-bca4-cf477ff3fb40', 'Fixed Header Feature', 'Fixes the header of lists and libraries', 'http://www.google.de,/_layouts/15/images/siteIcon.png', '', 'P3FixedHeader', FeatureScope.Web);
    p3ListDTClient = new P3CoreSharePointClient(thisFeature);
    if (p3ListDTClient.feature.settings["All"] != null) {
        if ((typeof p3ListDTClient.feature.settings["All"] !== 'undefined') && (typeof SPClientTemplates !== 'undefined')) {
            if (typeof p3ListDTClient.feature.settings["All"] !== 'undefined')
            {
                var headTag = document.getElementsByTagName("head")[0];
                var jqTag = document.createElement('script');
                jqTag.type = 'text/javascript';
                if (p3ListDTClient.SiteCollUrl != "/")
                    jqTag.src = p3ListDTClient.SiteCollUrl + '/_catalogs/masterpage/Display%20Templates/P3/DT_FixedListHeader.js';
                else
                    jqTag.src = '/_catalogs/masterpage/Display%20Templates/P3/DT_FixedListHeader.js';
                headTag.appendChild(jqTag);
            }
        }
    }
}
